import React, { useState, useEffect } from 'react';
import { ConnectRC, connect } from 'umi';
import { ConnectState } from '@/models/connect';
import { InsuranceModelState } from '@/models/modules/insurance';

import './index.less';

interface InsuranceProps {
  insurance: InsuranceModelState;
}

const InsurancePage: ConnectRC<InsuranceProps> = (props) => {
  const [loading, setLoading] = useState<boolean>(false);

  const { insurance } = props;

  useEffect(() => {}, []);

  return <div>page insurance</div>;
};

export default connect(({ insurance }: ConnectState) => ({
  insurance,
}))(InsurancePage);
